const array1 = [1, 2, 3];  
const array2 = [4, 5, 6];  
const mergedArray = [...array1, ...array2];  
console.log(mergedArray); // 输出 [1, 2, 3, 4, 5, 6]